home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / lib / xc / .xc < prev   
Text File  |  1994-03-10  |  1KB  |  47 lines

  1. # .xc -- startup script
  2. set bps 57600
  3. set cis off
  4. set proto 7e
  5. set cr on
  6. set nl on
  7. set xoff on
  8. set menu on
  9. set auto on
  10. set XCAPE 
  11.  
  12. #assign modem eq portname
  13. # setting different default speeds for assorted modems
  14. # note that the following means: if ANY of the three conditions are met
  15. #if modem eq "/dev/ttyA01"; modem eq "/dev/ttyA02"; modem eq "/dev/ttyA03" ; modem eq "/dev/ttyA08"
  16. #then
  17. #    set bps 38400
  18. #else
  19. #    set bps 2400
  20. #endif
  21.  
  22. #####
  23. # Dynamic keyboard binding feature
  24. #####
  25.  
  26. # Set terminal mode escape character ("XCAPE") to Control-Z:
  27. # set escape ^Z
  28.  
  29. # Bind XCAPE-0 to set Telebit T2500 to not require MNP:
  30. bind_string "AAAAT S95=0^M" 48
  31.  
  32. # Bind XCAPE-1 to set Telebit T2500 to attempt LAP/M and then MNP:
  33. bind_string 49 "AAAAT S95=1 S96=1 S97=1 S98=3 S106=0^M"
  34.  
  35. # Bind XCAPE-^S to receive a file using sz (.sz included in distribution)
  36. bind_script 19 "/usr/lib/xc/.sz"
  37.  
  38. # Bind XCAPE-^R to receive a file using rz (.rz included in distribution)
  39. bind_script 18 "/usr/lib/xc/.rz"
  40.  
  41. # Bind XCAPE-^Z to exit out of XC (a la vi).  Note that this is dangerous
  42. # because you no longer have a way of emitting a XCAPE through the modem,
  43. # except by embedding the command into a "bind_string" or "bind_script".
  44. # It's still a neat exit command...
  45.  
  46. bind_function 26 "quitchr"
  47.